<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ page language="java" import="java.util.*" %>
<%

        //the user id is set to null and the user is redirected to the login page
        session.setAttribute("uid", null);
        session.invalidate();
        response.sendRedirect("index.jsp");

%>